﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014AB RID: 5291
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UpdateFeatureSwitchScNotify : IMessage<UpdateFeatureSwitchScNotify>, IMessage, IEquatable<UpdateFeatureSwitchScNotify>, IDeepCloneable<UpdateFeatureSwitchScNotify>, IBufferMessage
	{
		// Token: 0x1700428F RID: 17039
		// (get) Token: 0x0600EC79 RID: 60537 RVA: 0x002777A1 File Offset: 0x002759A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UpdateFeatureSwitchScNotify> Parser
		{
			get
			{
				return UpdateFeatureSwitchScNotify._parser;
			}
		}

		// Token: 0x17004290 RID: 17040
		// (get) Token: 0x0600EC7A RID: 60538 RVA: 0x002777A8 File Offset: 0x002759A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UpdateFeatureSwitchScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004291 RID: 17041
		// (get) Token: 0x0600EC7B RID: 60539 RVA: 0x002777BA File Offset: 0x002759BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UpdateFeatureSwitchScNotify.Descriptor;
			}
		}

		// Token: 0x0600EC7C RID: 60540 RVA: 0x002777C1 File Offset: 0x002759C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateFeatureSwitchScNotify()
		{
		}

		// Token: 0x0600EC7D RID: 60541 RVA: 0x002777D4 File Offset: 0x002759D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateFeatureSwitchScNotify(UpdateFeatureSwitchScNotify other) : this()
		{
			this.switchInfoList_ = other.switchInfoList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EC7E RID: 60542 RVA: 0x002777FE File Offset: 0x002759FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateFeatureSwitchScNotify Clone()
		{
			return new UpdateFeatureSwitchScNotify(this);
		}

		// Token: 0x17004292 RID: 17042
		// (get) Token: 0x0600EC7F RID: 60543 RVA: 0x00277806 File Offset: 0x00275A06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<FeatureSwitchInfo> SwitchInfoList
		{
			get
			{
				return this.switchInfoList_;
			}
		}

		// Token: 0x0600EC80 RID: 60544 RVA: 0x0027780E File Offset: 0x00275A0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UpdateFeatureSwitchScNotify);
		}

		// Token: 0x0600EC81 RID: 60545 RVA: 0x0027781C File Offset: 0x00275A1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UpdateFeatureSwitchScNotify other)
		{
			return other != null && (other == this || (this.switchInfoList_.Equals(other.switchInfoList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EC82 RID: 60546 RVA: 0x00277850 File Offset: 0x00275A50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.switchInfoList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EC83 RID: 60547 RVA: 0x00277884 File Offset: 0x00275A84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EC84 RID: 60548 RVA: 0x0027788C File Offset: 0x00275A8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EC85 RID: 60549 RVA: 0x00277895 File Offset: 0x00275A95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.switchInfoList_.WriteTo(ref output, UpdateFeatureSwitchScNotify._repeated_switchInfoList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EC86 RID: 60550 RVA: 0x002778BC File Offset: 0x00275ABC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.switchInfoList_.CalculateSize(UpdateFeatureSwitchScNotify._repeated_switchInfoList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EC87 RID: 60551 RVA: 0x002778F5 File Offset: 0x00275AF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UpdateFeatureSwitchScNotify other)
		{
			if (other == null)
			{
				return;
			}
			this.switchInfoList_.Add(other.switchInfoList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EC88 RID: 60552 RVA: 0x00277923 File Offset: 0x00275B23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EC89 RID: 60553 RVA: 0x0027792C File Offset: 0x00275B2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.switchInfoList_.AddEntriesFrom(ref input, UpdateFeatureSwitchScNotify._repeated_switchInfoList_codec);
				}
			}
		}

		// Token: 0x04005D83 RID: 23939
		private static readonly MessageParser<UpdateFeatureSwitchScNotify> _parser = new MessageParser<UpdateFeatureSwitchScNotify>(() => new UpdateFeatureSwitchScNotify());

		// Token: 0x04005D84 RID: 23940
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005D85 RID: 23941
		public const int SwitchInfoListFieldNumber = 6;

		// Token: 0x04005D86 RID: 23942
		private static readonly FieldCodec<FeatureSwitchInfo> _repeated_switchInfoList_codec = FieldCodec.ForMessage<FeatureSwitchInfo>(50U, FeatureSwitchInfo.Parser);

		// Token: 0x04005D87 RID: 23943
		private readonly RepeatedField<FeatureSwitchInfo> switchInfoList_ = new RepeatedField<FeatureSwitchInfo>();
	}
}
